{% load blog_tags %}
{% load static %}
{% block css %}
    <link rel="stylesheet" href="{% static 'css/blog/archive_list.css' %}">
{% endblock %}
<div class="archive">
    <div class="archive-header">
        <span>文章归档</span>
    </div>
    <div class="archive-body">
        <ul>
            {% for date in date_list %}
                <li class="archive-item">
                    <a href="{% url 'blog:archive' date.year date.month %}">
                        {{ date.year }} 年 {{ date.month }} 月
                        <span>{% get_archive_num date.year date.month %}篇</span>
                    </a>
                </li>
            {% endfor %}
        </ul>
    </div>
</div>

